package com.imooc.api.controller.article;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 *
 * @auther Levi
 * @Date: 2021/03/18/17:16
 * @Description:
 */
@Api(tags = "html静态文件的Controller",value = "html静态文件的Controller")
@RequestMapping("article/html")
public interface ArticleHtmlControllerApi {

    @ApiOperation(value = "下载html文件",notes = "下载html文件",httpMethod = "GET")
    @GetMapping("/download")
    public Integer download (String articleId,
                                    String articleMongoId) throws Exception;

    @ApiOperation(value = "删除GridFS中的文件和对应的html文件",notes = "删除GridFS中的文件和对应的html文件",
            httpMethod = "GET")
    @GetMapping("/deleteHtml")
    public Integer deleteGridFSAndHtml(String articleId) ;

}
